﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="Default_UserList" MasterPageFile="~/Default/MasterPage.master"%>

<asp:Content ContentPlaceHolderID="head" runat="server" ID="head">
<script type="text/javascript">
    function EditItem(id) {
        popdialog.openWithIframe("修改管理用户信息", 'UserForm.aspx?param=' + id + '&random=' + Math.random(), 360, 210, true);
    }
    function RefreshData() {
        $("#<%=btnQuery.ClientID %>").click();
        //document.forms[0].submit();
        //window.location.reload(); 
    }
</script>
</asp:Content>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder" runat="server" ID="ContentPlaceHolder">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="tablesorter" 
    EnableModelValidation="True"  
    onrowcommand="GridView1_RowCommand" 
            onrowdeleting="GridView1_RowDeleting" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" 
            onselectedindexchanging="GridView1_SelectedIndexChanging" 
            onrowdeleted="GridView1_RowDeleted" 
            onrowdatabound="GridView1_RowDataBound">
    <Columns>
        <asp:CheckBoxField />
        <asp:BoundField DataField="UserName" HeaderText="用户名" />
        <asp:CheckBoxField DataField="IsValid" HeaderText="账号状态" />
        <asp:CommandField ShowSelectButton="True" SelectText="修 改"/>
        <asp:CommandField ShowDeleteButton="True" DeleteText="删 除"/>
    </Columns>
    <HeaderStyle Height="28px" />
</asp:GridView>
<asp:Button ID="btnQuery" runat="server" Width="50" Text="查 询" onclick="btnQuery_Click" style="visibility:hidden"/>
</asp:Content>